package com.google.code.chaotic.rpc;

import java.util.ArrayList;
import java.util.List;

import com.google.code.chaotic.dto.CommutingServiceDto;
import com.google.code.chaotic.dto.ServiceWaypointDto;
import com.google.gwt.user.client.rpc.AsyncCallback;

public interface ServiceSvcAsync {

	void countAllServices(String sessionId, AsyncCallback<Integer> callback);

	void countOwnServices(String sessionId, AsyncCallback<Integer> callback);

	void listAllServicesPaginated(String sessionId, int pageNo, int fetchSize,
			AsyncCallback<List<CommutingServiceDto>> callback);

	void listOwnServicesPaginated(String sessionId, int pageNo, int fetchSize,
			AsyncCallback<List<CommutingServiceDto>> callback);

	void finalizeService(String sessionId, String serviceId,
			ArrayList<ServiceWaypointDto> waypointDtos,
			AsyncCallback<Void> callback);
}
